num = int(input("请输入一个数字： "))
factorial = 1

if num < 0:
    print('不能输入负数')
elif num == 0:
    print('0的阶乘为1')
else:
    for i in range(1,num + 1):
        factorial = factorial * i
    print(num,factorial)